﻿using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Text.RegularExpressions;

public partial class urlredirect : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        /* if( string.IsNullOrEmpty(Request.QueryString["note"]) )
        {
            string tmpurl = Request.QueryString["url"];
            if (tmpurl == null)
            {
                Response.Write("null");
                Response.Redirect("http://www.nochoose.com");
                return;
            }

            if (!Regex.IsMatch(tmpurl, "(http|https|ftp|mms|rtsp|gopher|socks4|socks5)://.*"))
            {
                Response.Write("notnull");
                Response.Redirect("http://" + tmpurl);
            }
            Response.Redirect(tmpurl);
        }else{
            Response.Write("<html><body><div style='font-size:1.6em;'>url is: &nbsp;" + Request.QueryString["url"] + "<br/>note is: &nbsp;" + Request.QueryString["note"]+"</div></body></html>");
        } */
    }
}